package com.kksoft.readcm.service;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import com.kksoft.readcm.a.Appconfig;
import com.kksoft.readcm.activity.App;

public class ConnectionReceiver extends BroadcastReceiver
{
  public void onReceive(Context context, Intent intent)
  {
	  if(App.isConnectNet())
      {
          if(Appconfig.getThis().b().mLoginAppObservable || App.getSharedPreferences().getBoolean("syncQueriesPending", false))
              ListRequiredService.sendWakefulWork(context,FlushSendBatchService.class); 
      } else
      {
          Appconfig.getThis().d().f();
      }
    
  }
}